<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="keywords" content="铜仁商务局管理后台">
    <meta name="description" content="">
    <meta name="author" content="vimi8.com">
    <meta name="renderer" content="webkit">
    <link rel="icon" href="icon.ico">
    <title>铜仁商务局管理后台</title>
    <link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="node_modules/font-awesome/css/font-awesome.min.css">
    <link href="css/common.css" rel="stylesheet">
    <link href="css/showBox.css" rel="stylesheet">
</head>

<body>
<div id="wrapper">
    <div class="ht-top">
        <nav class="ht-navbar" role="navigation">
            <div class="ht-navbar-header">
                <a class="ht-navbar-brand" href="#">铜仁商务局管理后台</a>
            </div>
            <ul class="nav ht-navbar-nav">
                <!--<li class="active"><a href="#">1</a></li>
                <li><a href="#">2</a></li>-->
            </ul>
            <ul class="nav ht-navbar-nav navbar-right">
                <li class="active">
                    <!--<span>下午好</span>&nbsp;&nbsp;-->
                    <span>ebb</span>&nbsp;&nbsp;
                </li>
                <li>
                    <img src="http://qzapp.qlogo.cn/qzapp/100414805/830A5F805EB7FBC2E1E03D5ADB844CA2/100" width="25"
                         height="25" alt="" class="img-circle">&nbsp;&nbsp;
                </li>
                <li>
                    <a id="logout" title="退出登录" ><i class="fa fa-power-off"></i></a>
                </li>
            </ul>
        </nav>
    </div>
    <div class="ht-content">
        <aside class="ht-aside">
            <ul class="list-unstyled ht-aside-nav">
                <li>
                    <div class="ht-aside-item">
                        <a data-toggle="collapse" href="#collapseThree">
                            <i class="fa fa-sitemap fa-fw"></i> 平台管理
                            <i class="fa fa-angle-down angle"></i>
                        </a>
                    </div>

                    <div id="collapseThree" class="collapse in">
                        <ul class="list-unstyled">
                            <li class="ht-aside-item nl"><a href="index.html"><i class="fa fa-fw fa-code-fork text-muted"></i> 第三方平台</a></li>
                            <li class="ht-aside-item nl"><a href="ebbPlatform.html"><i class="fa fa-fw fa-cogs text-muted"></i> 电商综合服务站</a></li>
                            <li class="ht-aside-item nl"><a href="localEbbPlatform.html"><i class="fa fa-fw fa-cogs text-muted"></i> 电商企业</a></li>
                            <li class="ht-aside-item nl"><a href="selfBuildPlatform.html"><i class="fa fa-fw fa-cogs text-muted"></i> 自建平台</a></li>
                        </ul>
                    </div>
                </li>
                <li>
                    <div class="ht-aside-item">
                        <a href="productManager.html"><i class="fa fa-product-hunt fa-fw"></i>产品管理</a>
                    </div>

                </li>
                <li>
                    <div class="ht-aside-item">
                        <a href="logisticsManager.html"><i class="fa fa-product-hunt fa-fw"></i> 物流管理</a>
                    </div>
                </li>
                <li>
                    <div class="ht-aside-item">
                        <!--<a href="trainManager.html"><i class="fa fa-product-hunt fa-fw"></i>培训管理</a>-->
                        <a data-toggle="collapse" href="#collapseThree1">
                            <i class="fa fa-sitemap fa-fw"></i> 培训管理
                            <i class="fa fa-angle-down angle"></i>
                        </a>

                    </div>
                    <div id="collapseThree1" class="collapse in">
                        <ul class="list-unstyled">
                            <li class="ht-aside-item nl"><a href="trainManager.html" class="active"><i class="fa fa-fw fa-code-fork text-muted"></i> 培训信息</a></li>
                            <li class="ht-aside-item nl"><a href="trainMemberManager.html"><i class="fa fa-fw fa-cogs text-muted"></i> 学员信息</a></li>
                        </ul>
                    </div>
                </li>
                <li>
                    <div id="audit" class="ht-aside-item">
                        <a href="auditManager.html"><i class="fa fa-product-hunt fa-fw"></i> 审核管理</a>
                    </div>
                </li>

                <li>
                    <div id="claim" class="ht-aside-item">
                        <!--<a href="trainManager.html"><i class="fa fa-product-hunt fa-fw"></i>培训管理</a>-->
                        <a data-toggle="collapse" href="#collapseThree2">
                            <i class="fa fa-sitemap fa-fw"></i> 认领管理
                            <i class="fa fa-angle-down angle"></i>
                        </a>

                    </div>
                    <div id="collapseThree2" class="collapse in">
                        <ul class="list-unstyled">
                            <li class="ht-aside-item nl"><a href="noRegionList.html"><i class="fa fa-fw fa-code-fork text-muted"></i> 无区县列表</a></li>
                            <li class="ht-aside-item nl"><a href="myApplyRecord1.html"><i class="fa fa-fw fa-cogs text-muted"></i> 我的认领记录</a></li>
                        </ul>
                    </div>
                </li>
            </ul>
        </aside>
        <div class="ht-main">
            <div class="ht-title">
                <h3 class="pull-left">认领管理</h3>

            </div>

            <div class="ht-panel">
                <div class="panel panel-default">
                    <div class="panel-body">
                        <form class="form-inline form-filter" role="form">

                            <div class="form-group">
                                <label for="ebbName">店铺名称</label>
                                <input type="text" class="form-control" id="ebbName" placeholder="请输入店铺名称">
                            </div>

                            <a href="#" class="btn btn-info" onclick="comments()">提交</a>
                        </form>
                    </div>
                    <table class="table">
                        <thead>
                        <tr>
                            <th>店铺名称</th>
                            <th>申请人</th>
                            <th>审核状态</th>
                            <th>备注</th>
                            <th>申请时间</th>
                            <th>审批时间</th>

                        </tr>
                        </thead>
                        <tbody id="product-list-data">


                        </tbody>
                        <script id="product-list-tmpl" type="text/x-jsrender">
                            <tr>

                                <td>{{:ebbName}}</td>
                                <td>{{:applyPerson}}</td>
                                <td>{{if approvalStatus==-1}}待审核 {{else approvalStatus==0}} 审核拒绝{{else approvalStatus==1}} 审核通过 {{/if}}</td>
                                <td>{{:remark}}</td>
                                <td>{{:createTime}}</td>
                                <td>{{:updateTime}}</td>
                            </tr>
                        </script>
                    </table>
                    <div class="panel-footer" style="height: 60px;" id="pagination-bar">
                        <div id="pagination-box" class="pull-left">
                            <ul class="pagination" id="pagination">

                            </ul>
                        </div>

                        <div class="form-inline pull-right">
                            <div class="form-group">
                                <p class="form-control-static">共<span id="product-count">0</span>条申请记录，<span id="page-total">0</span>页</p>
                            </div>
                            <div class="form-group">
                                <div class="input-group" style="width: 130px;">
                                    <input type="number" min="1" class="form-control" id="page-index">
                                    <span class="input-group-btn">
                                        <button class="btn btn-default" type="button" id="go-index">跳转</button>
                                    </span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>
</div>


<script src="node_modules/jquery/dist/jquery.min.js"></script>
<script src="node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="node_modules/jquery/dist/jquery.form.min.js"></script>
<script src="node_modules/bootstrap/dist/js/bootstrap-datetimepicker.min.js"></script>
<script src="node_modules/jsviews/jsviews.min.js"></script>
<script src="node_modules/twbs-pagination/jquery.twbsPagination.min.js"></script>
<script src="js/showBox.js"></script>
<!--高德地图-->
<script src="js/common.js"></script>
<script src="js/applyRecord.js"></script>
<script>
    $(window).ready(function () {
        "use strict";
$.fn.datetimepicker.dates['zh'] = {
                days:       ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六","星期日"],
                daysShort:  ["日", "一", "二", "三", "四", "五", "六","日"],
                daysMin:    ["日", "一", "二", "三", "四", "五", "六","日"],
                months:     ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月","十二月"],
                monthsShort:  ["一", "二", "三", "四", "五", "六", "七", "八", "九", "十", "十一", "十二"],
                meridiem:    ["上午", "下午"],
                //suffix:      ["st", "nd", "rd", "th"],
                today:       "今天"
        };
    $('#startTime').datetimepicker({
        format: 'yyyy-mm-dd',
          language:  'zh',
            weekStart: 1,
            todayBtn:  1,
            autoclose: 1,
            todayHighlight: 1,
            startView: 2,
           minView: 2,
            forceParse: 0,
            showMeridian: 1
    }).on('changeDate', function (ev) {
            $(this).datetimepicker('hide');
        });
    $('#endTime').datetimepicker({
        format: 'yyyy-mm-dd',
          language:  'zh',
            weekStart: 1,
            todayBtn:  1,
            autoclose: 1,
            todayHighlight: 1,
            startView: 2,
           minView: 2,
            forceParse: 0,
            showMeridian: 1
    }).on('changeDate', function (ev) {
            $(this).datetimepicker('hide');
        });

 $(".file").on("change", "input[type='file']", function () {
            var filePath = $(this).val();
            if (filePath.indexOf("xls") != -1 || filePath.indexOf("xlsx") != -1) {
                $(".fileerrorTip").html("").hide();
                var arr = filePath.split('\\');
                var fileName = arr[arr.length - 1];


                $("#importbtn").removeAttr("display");
                $("#importbtn").attr("style", "display:inline");
            } else {
                $(".fileerrorTip").html("您未上传文件，或者您上传文件类型有误！").show();
                return false
            }
        });

        var options = {
            url: '/ebb/train/info/import/',
            type: 'post',
            success: function (data) {
                console.log(data);
                if (!data.error) {
                    $("#importing").attr("style", "display:none");
                    alert("导入成功!");
                    location.reload();
                } else {
                    if (data.errorMessage) {
                        alert(data.errorMessage);
                    }

                }
            }
        };
        var lock = false;
        $("form[name=imporexcelform]").submit(function () {
            if (lock) {
                alert("不能重复提交");
                return;
            }
            lock = true;
                        $(".btn-info").attr('disabled',true); ;
            //$("#importing").removeAattr("style");
            $(this).ajaxSubmit(options);
            return false; //阻止表单默认提交
        });


       })
</script>
</body>

</html>
